package com.neuedu.spring.service;

import com.neuedu.spring.dao.IUserDao;
import com.neuedu.spring.dao.UserDao;

public class UserService {

    private IUserDao userDao ;

    public void selectList(){
        System.out.println("UserService.selectList");
        userDao.selectList();
    }



    public IUserDao getUserDao() {
        return userDao;
    }

    //1 设置注入的时候给属性添加 setter方法
    public void setUserDao(IUserDao userDao) {
        this.userDao = userDao;
    }
}
